const path = require('path');
// __dirname
const resolve = dir => {
    return path.join(__dirname, dir)
}
module.exports = {
    chainWebpack: config => {
        config.resolve.alias
            .set('@', resolve('src'))
            .set('@v', resolve('src/views'))
            .set('@c', resolve('src/components'))
            .set('@a', resolve('src/assets'));
        config.resolve.symlinks(true);//打开热更新

    },

    devServer: {
        port: 8008,
        open: true,
        // compress: true,
        // disableHostCheck: true,
    },
   
}